Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build: make aro module public #496

Merged
merged 1 commit into from
Aug 7, 2023
Merged

Build: make aro module public #496

merged 1 commit into from
Aug 7, 2023

Conversation

marler8997
Copy link
Contributor

Exposes src/lib.zig as the aro module.

@Vexu Vexu merged commit c2f2908 into Vexu:master Aug 7, 2023
3 checks passed
@Vexu
Copy link
Owner

Vexu commented Aug 7, 2023

Not completely sure what this does but I'm guessing it's to do with pure Zig dependencies?

@marler8997 marler8997 deleted the publicModule branch August 8, 2023 14:29
@marler8997
Copy link
Contributor Author

If arocc is in your build.zig.zon, it let's you access the module from another build.zig like this:

    const arocc_dep = b.dependency("arocc", .{
        .target = target,
        .optimize = optimize,
    });

    // call arocc_dep.module("aro") to get the module from aro's build.zig, i.e.
    exe.addModule("aro", arocc_dep.module("aro"));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants